<template>
	<div class="header-hot">
		<!-- 顶部标题 -->
		<div class="hot-top">
			<span class="iconfont fire">&#xe6e7;</span>
			<label class="hot-til">本周热门榜单</label>
			<label class="hot-right">
				全部榜单
				<span class="iconfont">&#xe637;</span>
			</label>
		</div>
		<!-- 列表 -->
		<ul>
			<li class="hot-list" v-for="(item,index) in hotList" :key="index">
				<img :src="item.hotURL" />
				<p class="item-til">{{item.hottil}}</p>
				<p>
					<span>￥{{item.price}}</span>起
				</p>
			</li>
			
		</ul>
	</div>
</template>

<script>
	export default{
		props:['hotList'],
		data(){
			return{
				/* HotList:[
					{id:1,hotURL:require('@/assets/img/hot01.jpg'),hottil:'长隆野生动物世界',price:'250'},
					{id:2,hotURL:require('@/assets/img/hot02.jpg'),hottil:'长隆欢乐世界',price:'210.5'},
					{id:3,hotURL:require('@/assets/img/hot03.jpg'),hottil:'广州塔',price:'125'},
					{id:4,hotURL:require('@/assets/img/hot04.jpg'),hottil:'海珠国家湿地公园',price:'19'},
					{id:5,hotURL:require('@/assets/img/hot05.jpg'),hottil:'长隆国际大马戏剧院',price:'297.6'},
					{id:6,hotURL:require('@/assets/img/hot06.jpg'),hottil:'珠江夜游',price:'68'},
					{id:7,hotURL:require('@/assets/img/hot07.jpg'),hottil:'天适樱花游乐园',price:'250'},
					{id:8,hotURL:require('@/assets/img/hot08.jpg'),hottil:'广州长隆旅游度假区',price:'84.3'},
					{id:9,hotURL:require('@/assets/img/hot09.jpg'),hottil:'广州融创雪世界',price:'101'},
					{id:10,hotURL:require('@/assets/img/hot10.jpg'),hottil:'广州正佳极地海洋世界',price:'115'},
				] */
			}
		}
	}
</script>
<!-- &#xe699猜你喜欢 -->
<style scoped>
	.header-hot{
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		margin-top: 0.4rem;
		padding-bottom: 1rem;
		overflow: hidden;
	}
	.hot-top{
		line-height: 1rem;
		padding-left: 0.2rem;
	}
	.fire{
		color: orangered !important;
		font-size: 0.48rem;/* 24px */
	}
	.hot-til{
		color: #212121;
		font-size: 0.4rem;
		font-weight: bold;
	}
	.hot-right{
		float: right;
		color: #616161;
		font-size: 0.32rem;/* 16px */
		/* display: inline-block; */
		margin-right: 0.2rem;
	}
	.header-hot ul{
		width: 100%;
		/* 禁止换行 */
		white-space: nowrap;
		overflow: hidden;
		/* 滑动条 */
		overflow-x: scroll;
		padding-bottom: 0.4rem;
	}
	.hot-list{
		width: 2rem;
		height: 2rem;
		padding: 0.2rem;
		display: inline-block;
		text-align: center;
	}
	.hot-list img{
		width: 100%;
		height: 100%;
	}
	.hot-list span{
		color: #FF0000;
	}
	.item-til{
		margin-top: 0.2rem;
		margin-bottom: 0.2rem;
		overflow: hidden;
		text-overflow: ellipsis;/*文本符号 省略号 */
		white-space: nowrap;
	}
</style>
